import { CarryOutOutlined } from "@ant-design/icons";
import { Route } from ".";
import ExamList from "@/pages/exam/index";
import ExamRecord from "@/pages/exam/ExamRecord";
import ExamDetail from "@/pages/exam/ExamDetail";

const paper: Route[] = [
  {
    path: "exam",
    name: "考试管理",
    icon: <CarryOutOutlined />,
    children: [
      {
        path: "list",
        name: "考试列表",
        element: <ExamList />,
      },
      {
        path: "record/:examId",
        name: "考试记录",
        hidden: true,
        element: <ExamRecord />,
      },
      {
        path: "result",
        name: "考试详情",
        element: <ExamDetail />,
        hidden: true,
      },
    ],
  },
];

export default paper;
